import React, { BaseSyntheticEvent } from 'react';
import { Image, Text, TouchableOpacity, View } from 'react-native';

export default function tpl(a: <T>(action: string, ...args: unknown[]) => ((ev: BaseSyntheticEvent<T>) => void), s: (...class_names: string[]) => {}, d: (d: string) => string | unknown[]) {
	return (
		<View style={{
			backgroundColor: '#f4f4f4', height: '100%'
		}}>
			<View style={s('view')}>
				<View style={s('view1')}>
					<TouchableOpacity onPress={a('a002')}>
						<Image source={require('../../imgs/qingjia.jpg')} style={s('tu1')} />
					</TouchableOpacity>
					<Text onPress={a('a002')} style={s('text')}>教师请假</Text>

				</View>
				<View style={s('view1')}>
					<TouchableOpacity onPress={a('a003')}>
						<Image source={require('../../imgs/jilu.jpg')} style={s('tu1')} />
					</TouchableOpacity>
					<Text onPress={a('a003')} style={s('text')}>我的请假记录</Text>

				</View>
				<View style={s('view1')}>
					<TouchableOpacity onPress={a('a004')}>
						<Image source={require('../../imgs/shenpi.jpg')} style={s('tu1')} />
					</TouchableOpacity>
					<Text onPress={a('a004')} style={s('text')}>学生请假审批</Text>

				</View>
			</View>
		</View>
	);
}
